package com.nlx.notes.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("gold_sale_overview")
public class GoldSaleOverviewEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *总重量
     */
    private BigDecimal weight;

    /**
     *购买总价
     */
    private BigDecimal buyTotalPrice;

    /**
     * 售出总价
     */
    private BigDecimal saleTotalPrice;

    /**
     *
     */
    private BigDecimal buyUnitPrice;

    private BigDecimal saleUnitPrice;

    private BigDecimal fee;

    /**
     * 累计盈亏
     */
    private BigDecimal totalProfitLoss;

    private BigDecimal profit;

    private Long userId;

    private String remarks;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    private int delFlag;

}
